﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%request.setAttribute("ctx",request.getContextPath()); %>
<html>
<head>
<link href="${ctx}/extend/css/style.css" rel="stylesheet"
	type="text/css" />
<script src="${ctx}/extend/js/jquery/jquery.js" type="text/javascript"></script>
<script src="${ctx}/extend/js/dutil/DUtil.js" type="text/javascript"></script>
<script src="${ctx}/extend/css/css.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/js/common.js" type="text/javascript"></script>
<script src="${ctx}/js/check.js" type="text/javascript"></script>
<script src="${ctx}/js/utils.js" type="text/javascript"></script>
<script src="${ctx}/js/common/merdiseSort.js" type="text/javascript"></script>
<title>批量处理资产信息</title>

<script language="JavaScript">

function importFile(){
	var reMdForm=document.getElementById("importFileForm");
      	reMdForm.action="${ctx}/admin/importFile";
       reMdForm.submit();
}

function exportFile(){
	var reMdForm=document.getElementById("exportFileForm");
      	reMdForm.action="${ctx}/admin/exportFile";
       reMdForm.submit();
}

</script>

</head>


<body class="maintable">
	<form name="importFileForm" method="POST" id="importFileForm"
		action="importFile" enctype="multipart/form-data">
		<div style="overflow-y: auto; position: relative; word-wrap: break-word; word-break: break-all;">
			<div class="dclass_container">
				<div class="dclass_container_header">
					<div class="dclass_container_title">批量载入资产信息</div>
				</div>

				<div style="padding: 0.3em; text-align: center">
					<s:file name="reMd.importFilePath" id="importFilePath"
						label="文件路径：" />
					<input id="confirmImport" type="button" class="btn1" value="载入选择文件"
						onclick="javascript:importFile();" />
				</div>
			</div>
		</div>
	</form>
	<form name="exportFileForm" method="POST" id="exportFileForm"
		action="exportFile" enctype="multipart/form-data">
		<div style="overflow-y: auto; position: relative; word-wrap: break-word; word-break: break-all;">
			<div class="dclass_container">
				<div class="dclass_container_header">
					<div class="dclass_container_title">批量输出资产信息</div>
				</div>
				
				<div style="padding: 0.3em; text-align: center">
					<input id="confirmExport" type="button" class="btn1" value="批量输出"
						onclick="javascript:exportFile();" />
				</div>
			</div>
		</div>
	</form>
</body>
</html>